package com.ming.gateway.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: tangC
 * @Date: 2020/7/7 13:53
 * @Description:
 */
//@Configuration
public class RoutingConfig {

//    @Bean
    public RouteLocator routeLocator(RouteLocatorBuilder builder){
        return builder.routes().route(r->r.path("").filters(f->f.stripPrefix(1)).uri("uri")).build();
    }
}
